package com.itheima.controller;

import com.itheima.domain.Person;
import com.itheima.service.Impl.PersonServiceImpl;
import com.itheima.service.PersonService;
import org.junit.Test;

import java.util.List;

/**
 * @param
 * @return
 */
public class Tset {
    PersonService service=new PersonServiceImpl();
    @Test
    public void oto(){
        //调用业务层方法
        List<Person> list = service.one_to_one();
        for (Person person : list) {
            System.out.println(person.getId()+","+person.getName()+","+person.getAge()+","+person.getIdCard().getNumber());
        }
    }
}
